package com.uduemc.biso.core.feign.fallback;

import org.springframework.stereotype.Component;

import com.uduemc.biso.core.extities.center.AuthorizeModel;
import com.uduemc.biso.core.feign.AuthorizeModelFeign;
import com.uduemc.biso.core.utils.RestResult;

import feign.hystrix.FallbackFactory;

@Component
public class AuthorizeModelFeignFallback implements FallbackFactory<AuthorizeModelFeign> {

	@Override
	public AuthorizeModelFeign create(Throwable cause) {
		return new AuthorizeModelFeign() {

			@Override
			public RestResult updateByIdSelective(AuthorizeModel authorizeModel) {
				return null;
			}

			@Override
			public RestResult updateById(AuthorizeModel authorizeModel) {
				return null;
			}

			@Override
			public RestResult insertSelective(AuthorizeModel authorizeModel) {
				return null;
			}

			@Override
			public RestResult insert(AuthorizeModel authorizeModel) {
				return null;
			}

			@Override
			public RestResult findOne(long id) {
				return null;
			}

			@Override
			public RestResult findAll() {
				return null;
			}
		};
	}

}
